package com.siyuan.test;

import com.siyuan.test.service.OrderService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @className: AppConfig
 * @Description: TODO
 * @author: wzq
 * @date: 2022/8/23 16:42
 */
@ComponentScan("com.siyuan") // 开启包扫描，并指定扫描路径
//@Configuration
public class AppConfig {

	@Bean
	public OrderService orderService1(){
		return new OrderService();
	}

	@Bean
	public OrderService orderService2(){
		return new OrderService();
	}

}
